const gulp = require('gulp');
const pug  = require('gulp-pug');

gulp.task( 'pug' , function(){

	gulp.src('./*.pug')
	    .pipe( pug({ pretty : true }) )
	    .pipe( gulp.dest('./dist') )
})

gulp.task( 'watch' , function(){

	gulp.watch(['**/*.pug'] , ['pug'])
})

gulp.task('default', ['pug','watch'] );